! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! 
! The Reaction Rates File
! 
! Generated by KPP-2.2.3 symbolic chemistry Kinetics PreProcessor
!       (http://www.cs.vt.edu/~asandu/Software/KPP)
! KPP is distributed under GPL, the general public licence
!       (http://www.gnu.org/copyleft/gpl.html)
! (C) 1995-1997, V. Damian & A. Sandu, CGRER, Univ. Iowa
! (C) 1997-2005, A. Sandu, Michigan Tech, Virginia Tech
!     With important contributions from:
!        M. Damian, Villanova University, USA
!        R. Sander, Max-Planck Institute for Chemistry, Mainz, Germany
! 
! File                 : aromatics_kpp_Rates.f90
! Time                 : Fri Dec 20 16:41:03 2019
! Working directory    : /n/home08/kbates/Aromatics/setup
! Equation file        : aromatics_kpp.kpp
! Output root filename : aromatics_kpp
! 
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



MODULE aromatics_kpp_Rates

  USE aromatics_kpp_Parameters
  USE aromatics_kpp_Global
  IMPLICIT NONE

CONTAINS



! Begin Rate Law Functions from KPP_HOME/util/UserRateLaws

!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!  User-defined Rate Law functions
!  Note: the default argument type for rate laws, as read from the equations file, is single precision
!        but all the internal calculations are performed in double precision
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

!~~~>  Arrhenius
   REAL(kind=dp) FUNCTION ARR( A0,B0,C0 )
      REAL A0,B0,C0      
      ARR =  DBLE(A0) * EXP(-DBLE(B0)/TEMP) * (TEMP/300.0_dp)**DBLE(C0)
   END FUNCTION ARR        

   REAL(kind=dp) FUNCTION TUN( A0,B0,C0 )
      REAL A0,B0,C0      
      TUN =  DBLE(A0) * EXP(DBLE(B0)/TEMP) * EXP(DBLE(C0)/TEMP**3)
   END FUNCTION TUN

   REAL(kind=dp) FUNCTION ISO1( A0,B0,C0,D0,E0,F0,G0 )
      REAL A0,B0,C0,D0,E0,F0,G0
      REAL(kind=dp) K0, K1, K2
      K0 = DBLE(D0)*EXP(DBLE(E0)/TEMP)*EXP(1.E8/TEMP**3)
      K1 = DBLE(F0)*EXP(DBLE(G0)/TEMP)
      K2 = DBLE(C0)*K0/(K0+K1)
      ISO1 =  DBLE(A0) * EXP(DBLE(B0)/TEMP) * (1.-K2)
   END FUNCTION ISO1

   REAL(kind=dp) FUNCTION ISO2( A0,B0,C0,D0,E0,F0,G0 )
      REAL A0,B0,C0,D0,E0,F0,G0
      REAL(kind=dp) K0, K1, K2
      K0 = DBLE(D0)*EXP(DBLE(E0)/TEMP)*EXP(1.E8/TEMP**3)
      K1 = DBLE(F0)*EXP(DBLE(G0)/TEMP)
      K2 = DBLE(C0)*K0/(K0+K1)
      ISO2 =  DBLE(A0) * EXP(DBLE(B0)/TEMP) * K2
   END FUNCTION ISO2

   REAL(kind=dp) FUNCTION ARRPLUS( A0,B0,C0,D0,E0 )
      REAL A0,B0,C0,D0,E0 
      REAL(kind=dp) K0     
      K0 = DBLE(A0) * (DBLE(D0)+(TEMP*DBLE(E0)))
      ARRPLUS =  K0 * EXP(-DBLE(B0)/TEMP) * (TEMP/300.0_dp)**DBLE(C0)
      IF (ARRPLUS < 0.0) ARRPLUS = 0.0
   END FUNCTION ARRPLUS

   REAL(kind=dp) FUNCTION TUNPLUS( A0,B0,C0,D0,E0 )
      REAL A0,B0,C0,D0,E0
      REAL(kind=dp) K0
      K0 = DBLE(A0) * (DBLE(D0)+(TEMP*DBLE(E0)))
      TUNPLUS = K0 * EXP(DBLE(B0)/TEMP) * EXP(DBLE(C0)/TEMP**3)
      IF (TUNPLUS < 0.0) TUNPLUS = 0.0
   END FUNCTION TUNPLUS

!~~~> Simplified Arrhenius, with two arguments
!~~~> Note: The argument B0 has a changed sign when compared to ARR
   REAL(kind=dp) FUNCTION ARR2( A0,B0 )
      REAL A0,B0           
      ARR2 =  DBLE(A0) * EXP( DBLE(B0)/TEMP )              
   END FUNCTION ARR2          

   REAL(kind=dp) FUNCTION EP2(A0,C0,A2,C2,A3,C3)
      REAL A0,C0,A2,C2,A3,C3
      REAL(kind=dp) K0,K2,K3            
      K0 = DBLE(A0) * EXP(-DBLE(C0)/TEMP)
      K2 = DBLE(A2) * EXP(-DBLE(C2)/TEMP)
      K3 = DBLE(A3) * EXP(-DBLE(C3)/TEMP)
      K3 = K3*CFACTOR*1.0E6_dp
      EP2 = K0 + K3/(1.0_dp+K3/K2 )
   END FUNCTION EP2

   REAL(kind=dp) FUNCTION EP3(A1,C1,A2,C2) 
      REAL A1, C1, A2, C2
      REAL(kind=dp) K1, K2      
      K1 = DBLE(A1) * EXP(-DBLE(C1)/TEMP)
      K2 = DBLE(A2) * EXP(-DBLE(C2)/TEMP)
      EP3 = K1 + K2*(1.0E6_dp*CFACTOR)
   END FUNCTION EP3 

   REAL(kind=dp) FUNCTION EPO(A1,E1,M1)
      REAL A1, E1, M1
      REAL(kind=dp) K1      
      K1 = 1.0_dp/(DBLE(M1) * CFACTOR + 1.0_dp)
      EPO = DBLE(A1) * EXP(DBLE(E1)/TEMP) *  K1
   END FUNCTION EPO

   REAL(kind=dp) FUNCTION KCO(A1,M1)
      REAL A1, M1
      KCO = DBLE(A1) * (1.0_dp + (CFACTOR / DBLE(M1)))
   END FUNCTION KCO

   REAL(kind=dp) FUNCTION FALL ( A0,B0,C0,A1,B1,C1,CF)
      REAL A0,B0,C0,A1,B1,C1,CF
      REAL(kind=dp) K0, K1     
      K0 = DBLE(A0) * EXP(-DBLE(B0)/TEMP)* (TEMP/300.0_dp)**DBLE(C0)
      K1 = DBLE(A1) * EXP(-DBLE(B1)/TEMP)* (TEMP/300.0_dp)**DBLE(C1)
      K0 = K0*CFACTOR*1.0E6_dp
      K1 = K0/K1
      FALL = (K0/(1.0_dp+K1))*   &
           DBLE(CF)**(1.0_dp/(1.0_dp+(LOG10(K1))**2))
   END FUNCTION FALL

   REAL(kind=dp) FUNCTION PAN ( A0,B0,C0,A1,B1,C1,CF)
      REAL A0,B0,C0,A1,B1,C1,CF
      REAL(kind=dp) K0, K1, KR, NC, F     
      K0 = DBLE(A0) * EXP(DBLE(B0)/TEMP) * (TEMP/300.0_dp)**DBLE(C0)
      K1 = DBLE(A1) * EXP(DBLE(B1)/TEMP) * (TEMP/300.0_dp)**DBLE(C1)
      K0 = K0*CFACTOR
      KR = K0/K1
      NC = 0.75_dp-1.27_dp*(LOG10(DBLE(CF)))
      F  = 10.0_dp**(LOG10(DBLE(CF))/(1+(LOG10(KR)/NC)**2))
      PAN = K0*K1*F/(K0+K1)
   END FUNCTION PAN

   REAL(kind=dp) FUNCTION VILA ( A0,B0,C0,A1,B1,C1)
      REAL A0,B0,C0,A1,B1,C1
      REAL(kind=dp) K0, K1     
      K0 = DBLE(A0) * EXP(DBLE(B0)/TEMP) * (TEMP/300.0_dp)**DBLE(C0)
      K1 = DBLE(A1) * EXP(DBLE(B1)/TEMP) * (TEMP/300.0_dp)**DBLE(C1)
      K0 = K0*CFACTOR
      VILA = K0*K1*0.35_dp/(K0+K1)
   END FUNCTION VILA

   REAL(kind=dp) FUNCTION NIT ( A0,B0,C0,n,X0,Y0)
      REAL A0,B0,C0,n,X0,Y0
      REAL(kind=dp) K0, K1, K2, K3, K4     
      K0 = 2.0E-22_dp * EXP(DBLE(n))
      K1 = 4.3E-1_dp*(TEMP/298.0_dp)**(-8)
      K0 = K0*CFACTOR
      K1 = K0/K1
      K2 = (K0/(1.0_dp+K1))*   &
           4.1E-1_dp**(1.0_dp/(1.0_dp+(LOG10(K1))**2))
      K3 = K2/(K2+DBLE(C0))
      K4 = DBLE(A0)*(DBLE(X0)-TEMP*DBLE(Y0))
      NIT = K4 * EXP(DBLE(B0)/TEMP) * K3
   END FUNCTION NIT

   REAL(kind=dp) FUNCTION ALK ( A0,B0,C0,n,X0,Y0)
      REAL A0,B0,C0,n,X0,Y0
      REAL(kind=dp) K0, K1, K2, K3, K4  
      K0 = 2.0E-22_dp * EXP(DBLE(n))
      K1 = 4.3E-1_dp*(TEMP/298.0_dp)**(-8)
      K0 = K0*CFACTOR
      K1 = K0/K1
      K2 = (K0/(1.0_dp+K1))*   &
           4.1E-1_dp**(1.0_dp/(1.0_dp+(LOG10(K1))**2))
      K3 = DBLE(C0)/(K2+DBLE(C0))
      K4 = DBLE(A0)*(DBLE(X0)-TEMP*DBLE(Y0))
      ALK = K4 * EXP(DBLE(B0)/TEMP) * K3
   END FUNCTION ALK

   REAL(kind=dp) FUNCTION EXTARR ( A0,B0,C0 )
      REAL A0,B0,C0      
      EXTARR =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (TEMP/300.0_dp)**DBLE(B0)
   END FUNCTION EXTARR

   REAL(kind=dp) FUNCTION IEMISS ( A0,B0,C0 )
      REAL A0,B0,C0 
      REAL(kind=dp) CT, CD, CL, BS, AT
      AT = DBLE(A0) * 8.314_dp * TEMP
      BS = DBLE(B0) * SUN
      CL = 2.88E-3_dp*BS/((1.0_dp+7.29E-6_dp*BS**2.0_dp)**0.5_dp)
      CT = EXP(9.5E+4_dp*(TEMP-DBLE(A0))/AT)
      CD = 1 + EXP(2.3E+5_dp*(TEMP-3.14E+2_dp)/AT)
      IEMISS = DBLE(C0) * CT * CL / CD
   END FUNCTION IEMISS

   REAL(kind=dp) FUNCTION MCMHV ( A0,B0,C0 )
      REAL A0,B0,C0
      IF (SUN.GT.0) THEN
         MCMHV = DBLE(A0) * SUN**DBLE(B0) * EXP(-DBLE(C0)/SUN)
      ELSE
         MCMHV = 0.0
      ENDIF
   END FUNCTION MCMHV

  !---------------------------------------------------------------------------

  ELEMENTAL REAL(kind=dp) FUNCTION k_3rd(temp,cair,k0_300K,n,kinf_300K,m,fc)

    INTRINSIC LOG10

    REAL(kind=dp), INTENT(IN) :: temp      ! temperature [K]
    REAL(kind=dp), INTENT(IN) :: cair      ! air concentration [molecules/cm3]
    REAL, INTENT(IN) :: k0_300K   ! low pressure limit at 300 K
    REAL, INTENT(IN) :: n         ! exponent for low pressure limit
    REAL, INTENT(IN) :: kinf_300K ! high pressure limit at 300 K
    REAL, INTENT(IN) :: m         ! exponent for high pressure limit
    REAL, INTENT(IN) :: fc        ! broadening factor (usually fc=0.6)
    REAL(kind=dp) :: zt_help, k0_T, kinf_T, k_ratio

    zt_help = 300._dp/temp
    k0_T    = k0_300K   * zt_help**(n) * cair ! k_0   at current T
    kinf_T  = kinf_300K * zt_help**(m)        ! k_inf at current T
    k_ratio = k0_T/kinf_T
    k_3rd   = k0_T/(1._dp+k_ratio)*fc**(1._dp/(1._dp+LOG10(k_ratio)**2))

  END FUNCTION k_3rd

  !---------------------------------------------------------------------------

  ELEMENTAL REAL(kind=dp) FUNCTION k_arr (k_298,tdep,temp)
    ! Arrhenius function

    REAL,     INTENT(IN) :: k_298 ! k at T = 298.15K
    REAL,     INTENT(IN) :: tdep  ! temperature dependence
    REAL(kind=dp), INTENT(IN) :: temp  ! temperature

    INTRINSIC EXP

    k_arr = k_298 * EXP(tdep*(1._dp/temp-3.3540E-3_dp)) ! 1/298.15=3.3540e-3

  END FUNCTION k_arr

  REAL(kind=dp) FUNCTION OH_O1D (J, H2O, TEMP, CFACTOR)
  REAL*8 J, H2O, TEMP, CFACTOR
  REAL*8 K1, K2, K3
  REAL*8 N2, O2

  N2=0.79d0
  O2=0.21d0

  K1=1.63d-10*exp(60d0/TEMP)
  K2=2.15d-11*exp(110d0/TEMP)
  K3=3.30d-11*exp(55d0/TEMP)

  OH_O1D=J*K1*H2O/(K1*H2O+K2*N2*CFACTOR+K3*O2*CFACTOR)
  END FUNCTION OH_O1D

  REAL(kind=dp) FUNCTION HO2_H2O(H2O,TEMP)
  REAL*8 TEMP, H2O
  HO2_H2O=1+1.4D-21*H2O*EXP(2200/TEMP)
  END FUNCTION HO2_H2O

  REAL(kind=dp) FUNCTION GCARR( A0,B0,C0 )
      REAL A0,B0,C0
      GCARR =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
  END FUNCTION GCARR

  REAL(kind=dp) FUNCTION GC_HO2NO3( A0,B0,C0,A1,B1,C1 )
      REAL A0,B0,C0,A1,B1,C1
      REAL(kind=dp) :: R0,R1
      R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
      R1 =  DBLE(A1) * EXP(DBLE(C1)/TEMP) * (300._dp/TEMP)**DBLE(B1)

      GC_HO2NO3 = (R0+R1*CFACTOR)*(1.D0+1.4E-21_dp*CFACTOR*1.0E-2_dp &
                   * EXP(2200.E+0_dp/TEMP))
  END FUNCTION GC_HO2NO3

  REAL(kind=dp) FUNCTION GC_TBRANCH( A0,B0,C0,A1,B1,C1 )
! Temperature Dependent Branching Ratio                                                                                                     
      REAL A0,B0,C0,A1,B1,C1
      REAL(kind=dp) :: R0,R1
      R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
      R1 =  DBLE(A1) * EXP(DBLE(C1)/TEMP) * (300._dp/TEMP)**DBLE(B1)

      GC_TBRANCH = R0/(1.D0+R1)

  END FUNCTION GC_TBRANCH

  REAL(kind=dp) FUNCTION GC_RO2HO2( A0,B0,C0,A1,B1,C1 )
! Carbon Dependence of RO2+HO2                                                                                                              
      REAL A0,B0,C0,A1,B1,C1
      REAL(kind=dp) :: R0,R1
      R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
      R1 =  DBLE(A1) * EXP(DBLE(C1)/TEMP) * (300._dp/TEMP)**DBLE(B1)

      GC_RO2HO2 = R0*(1E0-EXP(-0.245E0*R1))

  END FUNCTION GC_RO2HO2

  REAL(kind=dp) FUNCTION GC_DMSOH( A0,B0,C0,A1,B1,C1 )
! DMS+OH+O2                                                                                                                                 
    REAL A0,B0,C0,A1,B1,C1
    REAL(kind=dp) :: R0,R1
    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    R1 =  DBLE(A1) * EXP(DBLE(C1)/TEMP) * (300._dp/TEMP)**DBLE(B1)
!    GC_DMSOH = R0/(1e0_dp+R1*0.2095e0_dp)                                                                                                  
    GC_DMSOH = (R0*CFACTOR*0.2095e0_dp)/(1e0_dp+R1*0.2095e0_dp)

  END FUNCTION GC_DMSOH

  REAL(kind=dp) FUNCTION GC_GLYXNO3( A0,B0,C0 )
! ---  K = K1*([O2]+3.5D18)/(2*[O2]+3.5D18) --- HO2+2*CO branch of GLYX+OH/NO3                                                              
    REAL A0,B0,C0
    REAL(kind=dp) R0
    REAL(kind=dp) O2

    O2 = CFACTOR*0.2095e0_dp
    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    GC_GLYXNO3 = R0*(O2+3.5E+18_dp)/(2.E+0_dp*O2+3.5E+18_dp)

  END FUNCTION GC_GLYXNO3

  REAL(kind=dp) FUNCTION GC_OHHNO3( A0,B0,C0,A1,B1,C1,A2,B2,C2 )
! ---  OH + HNO3:   K = K0 + K3[M] / (1 + K3[M]/K2)  ------                                                                                 
    REAL A0,B0,C0,A1,B1,C1,A2,B2,C2
    REAL(kind=dp) R0,R1,R2
    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    R1 =  DBLE(A1) * EXP(DBLE(C1)/TEMP) * (300._dp/TEMP)**DBLE(B1)
    R2 =  CFACTOR*(DBLE(A2) * EXP(DBLE(C2)/TEMP) * (300._dp/TEMP)**DBLE(B2))
    GC_OHHNO3 = R0 + R2/(1.E0_dp + R2/R1)

  END FUNCTION GC_OHHNO3

  REAL(kind=dp) FUNCTION GC_GLYCOHA( A0,B0,C0 )
!                                                                                                                                           
    REAL A0,B0,C0,R0,GLYC_FRAC
    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    GLYC_FRAC=1e+0_dp-11.0729e+0_dp*EXP(-(1._dp/73._dp)*TEMP)
    IF (GLYC_FRAC<0e+0_dp) GLYC_FRAC=0e+0_dp
    GC_GLYCOHA=R0*GLYC_FRAC

  END FUNCTION GC_GLYCOHA

  REAL(kind=dp) FUNCTION GC_GLYCOHB( A0,B0,C0 )
!                                                                                                                                           
    REAL A0,B0,C0
    REAL(kind=dp) :: R0,GLYC_FRAC
    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    GLYC_FRAC=1e+0_dp-11.0729e+0_dp*EXP(-(1._dp/73._dp)*TEMP)
    IF (GLYC_FRAC<0e+0_dp) GLYC_FRAC=0e+0_dp
    GC_GLYCOHB=R0*(1e0_dp-GLYC_FRAC)

  END FUNCTION GC_GLYCOHB

  REAL(kind=dp) FUNCTION GC_HACOHA( A0,B0,C0 )
!                                                                                                                                           
    REAL A0,B0,C0
    REAL(kind=dp) :: R0,HAC_FRAC
    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    HAC_FRAC=1e+0_dp-23.7e+0_dp*EXP(-(1._dp/60._dp)*TEMP)
    IF (HAC_FRAC<0e+0_dp) HAC_FRAC=0e+0_dp
    GC_HACOHA=R0*HAC_FRAC

  END FUNCTION GC_HACOHA

  REAL(kind=dp) FUNCTION GC_HACOHB( A0,B0,C0 )
!                                                                                                                                           
    REAL A0,B0,C0
    REAL(kind=dp) :: R0,HAC_FRAC
    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    HAC_FRAC=1e+0_dp-23.7e+0_dp*EXP(-(1._dp/60._dp)*TEMP)
    IF (HAC_FRAC<0e+0_dp) HAC_FRAC=0e+0_dp
    GC_HACOHB=R0*(1.E0_dp-HAC_FRAC)

  END FUNCTION GC_HACOHB

  REAL(kind=dp) FUNCTION GC_OHCO( A0,B0,C0 )

    REAL A0,B0,C0,R0
    REAL KLO1,KLO2,KHI1,KHI2,XYRAT1,XYRAT2,BLOG1,BLOG2,FEXP1,FEXP2
    REAL KCO1,KCO2,KCO

    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    R0 = R0 * (1.E+0_dp + 0.6e+0_dp*9.871E7_dp)

    ! new OH+CO rate from JPL2006.                                                                                                          
    KLO1=5.9E-33_dp*(300._dp/TEMP)**(1.E+0_dp)
    KHI1=1.1E-12_dp*(300._dp/TEMP)**(-1.3E0_dp)
    XYRAT1=KLO1*CFACTOR/KHI1
    BLOG1=LOG10(XYRAT1)
    FEXP1=1.E+0_dp/(1.E+0_dp+BLOG1*BLOG1)
    KCO1=KLO1*CFACTOR*0.6**FEXP1/(1.e+0_dp+XYRAT1)
    KLO2=1.5E-13_dp*(300._dp/TEMP)**(0.E+0_dp)
    KHI2=2.1e+09_dp *(300._dp/TEMP)**(-6.1E+0_dp)
    XYRAT2=KLO2*CFACTOR/KHI2
    BLOG2=LOG10(XYRAT2)
    FEXP2=1.E+0_dp/(1.E+0_dp+BLOG2*BLOG2)
    KCO2=KLO2*0.6**FEXP2/(1.e+0_dp+XYRAT2)
    KCO=KCO1+KCO2
    GC_OHCO=KCO

  END FUNCTION GC_OHCO

  REAL(kind=dp) FUNCTION GC_RO2NO( B,A0,B0,C0,A1,B1,C1 )
    ! ---  K = K1*(1-FYRNO3(K2,M,T))  ---  abstraction branch of RO2+NO                                                                     
    CHARACTER(*) B !Branch Toggle                                                                                                           
    REAL A0,B0,C0,A1,B1,C1
    REAL(kind=dp) :: R0,R1
    REAL(kind=dp) :: YYYN, XXYN,  AAA,  RARB, ZZYN
    REAL(kind=dp) :: XF, ALPHA, Y300, BETA, XMINF, XM0
    REAL(kind=dp) :: FYRNO3
    Y300 = 0.826
    ALPHA= 1.94e-22
    BETA = 0.97
    XM0  = 0.
    XMINF= 8.1
    XF   = 0.411

    R0 =  DBLE(A0) * EXP(DBLE(C0)/TEMP) * (300._dp/TEMP)**DBLE(B0)
    R1 =  DBLE(A1) * EXP(DBLE(C1)/TEMP) * (300._dp/TEMP)**DBLE(B1)

    ! Initialize static variables                                                                                                           

    XXYN   = ALPHA*EXP(BETA*R1)*CFACTOR*((300./TEMP)**XM0)
    YYYN   = Y300*((300./TEMP)**XMINF)
    AAA    = LOG10(XXYN/YYYN)
    ZZYN   = 1./(1.+ AAA*AAA )
    RARB   = (XXYN/(1.+ (XXYN/YYYN)))*(XF**ZZYN)
    FYRNO3 = RARB/(1. + RARB)
    IF (trim(B) .eq. 'A') THEN
       GC_RO2NO     = R0 * FYRNO3
    ELSEIF (trim(B) .eq. 'B') THEN
       GC_RO2NO     = R0 * (1.E+0_dp - FYRNO3)
    ENDIF

  END FUNCTION GC_RO2NO

  REAL(kind=dp) FUNCTION GCJPL3( k0_300, n, ki_300, m)
!  Functions given in JPL Booklet                                                                                                           
      REAL k0_300, n, ki_300,m
      REAL k0, ki

      k0=k0_300*((TEMP/300.d0)**(-n))
      ki=ki_300*((TEMP/300.d0)**(-m))

!      GCJPL3=(k0*CFACTOR)/(1+k0*CFACTOR/ki)*0.6** &                                                                                          
!       ((1+((LOG10(k0*CFACTOR/ki))**2d0)**-1.0d0))                                                                                          
      GCJPL3=(k0/(1.d0+k0/(ki/CFACTOR)))*0.6** &
        ((1+((log10(k0/(ki/CFACTOR)))**2d0)**1.0e0))
      GCJPL3=GCJPL3*CFACTOR
  END FUNCTION GCJPL3

  REAL(kind=dp) FUNCTION GCJPLEQ( A0,B0,C0,A1,B1,C1,A2,B2,C2,FV,FCT1,FCT2 )
 ! Function calculates the rate constant of the forward reaction                                                                            
 ! calculates the equilibrium constant                                                                                                      
 ! Find the backwards reaction by K=kforward/kbackwards                                                                                     
       REAL A0,B0,C0,A1,B1,C1
       REAL(kind=dp) :: R0,R1
       REAL, OPTIONAL :: A2,B2,C2,FV,FCT1,FCT2 !If a P-dependent rxn                                                                        

       ! Calculate Backwards reaction                                                                                                       
       R0 = GCARR( A0,B0,C0 )

       ! Calculate forwards reaction                                                                                                        
       IF (present(A2)) THEN ! P-dependent                                                                                                  
          IF (present(B2) .and. present(C2) .and. present(FV) &
                          .and. present(FCT1) .and. present(FCT2)) THEN
             R1 = GCJPLPR( A1,B1,C1,A2,B2,C2,FV,FCT1,FCT2)
          ELSE ! Missing params!                                                                                                            
             write(*,'(a)') 'GCJPLEQ: Missing parameters for P-dependent reaction.'
             write(*,'(a)') 'GCJPLEQ: Returning zero'
             GCJPLEQ = 0.E0
             RETURN
          ENDIF
       ELSE
          R1 = gcarr( A1,B1,C1 ) !Std. Arrhenius eqn.                                                                                       
       ENDIF

       GCJPLEQ=R1/R0
  END FUNCTION GCJPLEQ

  REAL(kind=dp) FUNCTION GCJPLPR(A0,B0,C0,A1,B1,C1,FV,FCT1,FCT2)
! * PRESSURE-DEPENDENT EFFECTS                                                                                                              
! * ADD THE THIRD BODY EFFECT FOR PRESSURE DEPENDENCE OF RATE                                                                               
! * COEFFICIENTS.                                                                                                                           
! A0 B0, & C0 are the Arrhenius parameters for the lower-limit                                                                              
! rate. A1, B1 & C1 are the upper-limit parameters.                                                                                         
! FV is the falloff curve paramter, (SEE ATKINSON ET. AL (1992)                                                                             
! J. PHYS. CHEM. REF. DATA 21, P. 1145). USUALLY = 0.6                                                                                      
!                                                                                                                                           
       REAL A0,B0,C0,A1,B1,C1,FV,FCT1,FCT2
       REAL FCT,XYRAT,BLOG,RLOW,RHIGH,FEXP

       RLOW  = GCARR( A0,B0,C0 )*CFACTOR
       RHIGH = GCARR( A1,B1,C1 )

       IF     (FCT2.NE.0.) THEN
             FCT            = EXP(-TEMP / FCT1) + EXP(-FCT2 / TEMP)
             XYRAT          = RLOW/RHIGH
             BLOG           = LOG10(XYRAT)
             FEXP           = 1.e+0_dp / (1.e+0_dp + BLOG * BLOG)
             GCJPLPR        = RLOW*FCT**FEXP/(1e+0_dp+XYRAT)
       ELSEIF (FCT1.NE.0.) THEN
             FCT            = EXP(-TEMP / FCT1)
             XYRAT          = RLOW/RHIGH
             BLOG           = LOG10(XYRAT)
             FEXP           = 1.e+0_dp / (1.e+0_dp + BLOG * BLOG)
             GCJPLPR        = RLOW*FCT**FEXP/(1e+0_dp+XYRAT)
       ELSE
             XYRAT          = RLOW/RHIGH
             BLOG           = LOG10(XYRAT)
             FEXP           = 1.e+0_dp / (1.e+0_dp + BLOG * BLOG)
             GCJPLPR        = RLOW*FV**FEXP/(1e+0_dp+XYRAT)
       ENDIF


  END FUNCTION GCJPLPR

  REAL(kind=dp) FUNCTION GCIUPAC3(ko_300,n,ki_300,m,Fc)
! Function calcualtes the rate constant of 3 body reaction using IUPAC                                                                      
! methology                                                                                                                                 
  REAL ko_300,n,ki_300,m,Fc
  REAL ko, ki, F, NN

  ko=ko_300*((TEMP/300.e0)**n)*CFACTOR
  ki=ki_300*((TEMP/300.e0)**m)

  NN=0.75-1.27*LOG10(Fc)
  F=10.0**(LOG10(Fc)/(1.0e0+(LOG10(ko/ki)/NN)**2.0))


  GCIUPAC3=ko/(1+ko/ki)*F
  END FUNCTION GCIUPAC3


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!  End of User-defined Rate Law functions
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

! End Rate Law Functions from KPP_HOME/util/UserRateLaws


! Begin INLINED Rate Law Functions


! End INLINED Rate Law Functions

! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! 
! Update_SUN - update SUN light using TIME
!   Arguments :
! 
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  SUBROUTINE Update_SUN()
      !USE aromatics_kpp_Parameters
      !USE aromatics_kpp_Global

    IMPLICIT NONE

    REAL(kind=dp) :: SunRise, SunSet
    REAL(kind=dp) :: Thour, Tlocal, Ttmp 
    ! PI - Value of pi
    REAL(kind=dp), PARAMETER :: PI = 3.14159265358979d0
    
    SunRise = 4.5_dp 
    SunSet  = 19.5_dp 
    Thour = TIME/3600.0_dp 
    Tlocal = Thour - (INT(Thour)/24)*24

    IF ((Tlocal>=SunRise).AND.(Tlocal<=SunSet)) THEN
       Ttmp = (2.0*Tlocal-SunRise-SunSet)/(SunSet-SunRise)
       IF (Ttmp.GT.0) THEN
          Ttmp =  Ttmp*Ttmp
       ELSE
          Ttmp = -Ttmp*Ttmp
       END IF
       SUN = ( 1.0_dp + COS(PI*Ttmp) )/3.0_dp 
    ELSE
       SUN = 0.0_dp 
    END IF

 END SUBROUTINE Update_SUN

! End of Update_SUN function
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! 
! Update_RCONST - function to update rate constants
!   Arguments :
! 
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SUBROUTINE Update_RCONST ( )




! Begin INLINED RCONST


! End INLINED RCONST

  RCONST(1) = (7.45E4*(TEMP/300.)**-2.6)
  RCONST(2) = (8.0E-12*EXP(-2060./TEMP))
  RCONST(3) = (PAN(1.0E-31,0.0,-1.6,5.0E-11,0.0,-0.3,0.85))
  RCONST(4) = (5.5E-12*EXP(188./TEMP))
  RCONST(5) = (PAN(1.3E-31,0.0,-1.5,2.3E-11,0.0,0.24,0.6))
  RCONST(6) = (1.68E8*EXP(67./TEMP)+3.95E8*EXP(130./TEMP))
  RCONST(7) = (1.4E-12*EXP(-1310./TEMP))
  RCONST(8) = (1.4E-13*EXP(-2470./TEMP))
  RCONST(9) = (1.7E-20*EXP(530./TEMP))
  RCONST(10) = (1.8E-11*EXP(110./TEMP))
  RCONST(11) = (4.50E-14*EXP(-1260./TEMP))
  RCONST(12) = (PAN(3.6E-30,0.0,-4.1,1.9E-12,0.0,0.2,0.35))
! RCONST(13) = constant rate coefficient
  RCONST(14) = (1.70E-12*EXP(-940./TEMP))
  RCONST(15) = (7.7E-12*EXP(-2100./TEMP))
  RCONST(16) = (2.9E-12*EXP(-160./TEMP))
  RCONST(17) = (2.03E-16*EXP(693./TEMP)*(TEMP/300.)**4.57)
  RCONST(18) = (4.8E-11*EXP(250./TEMP))
  RCONST(19) = ((1+(3.5E-4*EXP(2200./TEMP)))*(2.20E-13*EXP(600./TEMP)+4.75E-14*EXP(980./TEMP)))
  RCONST(20) = (PAN(7.4E-31,0.0,-2.4,3.3E-11,0.0,-0.3,0.81))
  RCONST(21) = (PAN(3.2E-30,0.0,-4.5,3.0E-11,0.0,0.0,0.41))
! RCONST(22) = constant rate coefficient
  RCONST(23) = (3.45E-12*EXP(270./TEMP))
  RCONST(24) = (PAN(1.4E-31,0.0,-3.1,4.0E-12,0.0,0.0,0.4))
  RCONST(25) = (3.2E-13*EXP(690./TEMP))
! RCONST(26) = constant rate coefficient
  RCONST(27) = (2.5E-12*EXP(260./TEMP))
  RCONST(28) = (2.4E-14*EXP(460./TEMP)+(1.625E-14*EXP(1335./TEMP))/(1+(602.*EXP(-864./TEMP))))
  RCONST(29) = (SUN*3.78E-5)
  RCONST(30) = (SUN*4.41E-4)
  RCONST(31) = (SUN*7.88E-6)
  RCONST(32) = (SUN*8.92E-3)
  RCONST(33) = (SUN*2.23E-2)
  RCONST(34) = (SUN*1.54E-1)
  RCONST(35) = (SUN*1.98E-3)
  RCONST(36) = (SUN*6.85E-7)
  RCONST(37) = (GCARR(8.50E-13,0.0E+00,-2450.0))
  RCONST(38) = (SUN*4.5E-5)
  RCONST(39) = (SUN*5.21E-6)
  RCONST(40) = (PAN(1.3E-3,-1.1E4,-3.5,9.7E14,-1.108E4,0.1,0.35))
  RCONST(41) = (PAN(4.1E-5,-10650.0,0.0,6.0E15,-11170.0,0.0,0.4))
  RCONST(42) = (GCARR(2.45E-12,0.0E+00,-1775.0))
  RCONST(43) = (GCARR(2.80E-12,0.0E+00,300.0))
  RCONST(44) = (GCARR(4.10E-13,0.0E+00,750.0))
  RCONST(45) = (GC_TBRANCH(9.50E-14,0.0E+00,390.0,2.62E1,0.0,-1130.0))
  RCONST(46) = (GC_TBRANCH(9.50E-14,0.0E+00,390.0,4.E-2,0.0,1130.0))
  RCONST(47) = (GCJPLPR(1.00E-30,4.8E+00,0.0,7.2E-12,2.1E0,0.0,0.6,0.0,0.0))
  RCONST(48) = (GCJPLPR(1.05E-02,4.8E+00,-11234.0,7.58E16,2.1E0,-11234.0,0.6,0.0,0.0))
  RCONST(49) = (GCARR(2.66E-12,0.0E+00,200.0))
  RCONST(50) = (GCARR(1.14E-12,0.0E+00,200.0))
  RCONST(51) = (GCARR(5.50E-12,0.0E+00,125.0))
  RCONST(52) = (GCARR(5.80E-16,0.0E+00,0.0))
  RCONST(53) = (GCARR(2.90E-12,0.0E+00,-345.0))
  RCONST(54) = (KCO(1.44E-13,4.2E19))
  RCONST(55) = (SUN*6.49E-6)
  RCONST(56) = (SUN*4.65E-5)
  RCONST(57) = (SUN*6.01E-5)
  RCONST(58) = (SUN*0.05*1.95E-4)
  RCONST(59) = (SUN*0.95*1.95E-4)
  RCONST(60) = (GCARR(2.45E-12,0.0E+00,-1775.0))
  RCONST(61) = (GCARR(2.80E-12,0.0E+00,300.0))
  RCONST(62) = (GCARR(4.10E-13,0.0E+00,750.0))
  RCONST(63) = (GC_TBRANCH(9.50E-14,0.0E+00,390.0,2.62E1,0.0,-1130.0))
  RCONST(64) = (GC_TBRANCH(9.50E-14,0.0E+00,390.0,4.E-2,0.0,1130.0))
  RCONST(65) = (GC_TBRANCH(9.50E-14,0.0E+00,390.0,2.62E1,0.0,-1130.0))
  RCONST(66) = (GC_TBRANCH(9.50E-14,0.0E+00,390.0,4.E-2,0.0,1130.0))
  RCONST(67) = (GCJPLPR(1.00E-30,4.8E+00,0.0,7.2E-12,2.1E0,0.0,0.6,0.0,0.0))
  RCONST(68) = (GCJPLPR(1.05E-02,4.8E+00,-11234.0,7.58E16,2.1E0,-11234.0,0.6,0.0,0.0))
  RCONST(69) = (GCARR(2.66E-12,0.0E+00,200.0))
  RCONST(70) = (GCARR(1.14E-12,0.0E+00,200.0))
  RCONST(71) = (GCARR(5.50E-12,0.0E+00,125.0))
  RCONST(72) = (GCARR(5.80E-16,0.0E+00,0.0))
  RCONST(73) = (GCARR(2.90E-12,0.0E+00,-345.0))
  RCONST(74) = (KCO(1.44E-13,4.2E19))
  RCONST(75) = (SUN*6.49E-6)
  RCONST(76) = (SUN*4.65E-5)
  RCONST(77) = (SUN*6.01E-5)
  RCONST(78) = (SUN*0.05*1.95E-4)
  RCONST(79) = (SUN*0.95*1.95E-4)
  RCONST(80) = (GCARR(2.33E-12,0.0E+00,-193.0))
  RCONST(81) = (GCARR(1.81E-12,0.0E+00,338.0))
  RCONST(82) = (GCARR(2.31E-11,0.0E+00,0.0))
  RCONST(83) = (GCARR(2.60E-16,0.0E+00,0.0))
  RCONST(84) = (GCARR(1.40E-12,0.0E+00,700.0))
  RCONST(85) = (GCARR(2.60E-12,0.0E+00,350.0))
  RCONST(86) = (GCARR(1.40E-12,0.0E+00,700.0))
  RCONST(87) = (GCARR(2.60E-12,0.0E+00,350.0))
  RCONST(88) = (GCARR(1.40E-12,0.0E+00,700.0))
  RCONST(89) = (GCARR(2.60E-12,0.0E+00,350.0))
  RCONST(90) = (GCARR(5.92E-13,0.0E+00,0.0))
  RCONST(91) = (GCARR(5.92E-13,0.0E+00,0.0))
  RCONST(92) = (GCARR(3.00E-13,0.0E+00,0.0))
  RCONST(93) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(94) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(95) = (GCARR(7.50E-13,0.0E+00,500.0))
  RCONST(96) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(97) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(98) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(99) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(100) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(101) = (GCARR(1.80E-12,0.0E+00,500.0))
  RCONST(102) = (GCARR(2.00E-13,0.0E+00,500.0))
  RCONST(103) = (GCARR(2.66E-12,0.0E+00,200.0))
  RCONST(104) = (GCARR(1.14E-12,0.0E+00,200.0))
  RCONST(105) = (GCARR(4.00E-13,0.0E+00,0.0))
  RCONST(106) = (GCARR(4.63E-12,0.0E+00,350.0))
  RCONST(107) = (GCARR(1.40E-12,0.0E+00,-1900.0))
  RCONST(108) = (GCJPLPR(9.70E-29,5.6E+00,0.0,9.3E-12,1.5E0,0.0,0.6,0.0,0.0))
  RCONST(109) = (GCJPLEQ(9.30E-29,0.0E+00,14000.0,9.7E-29,5.6E0,0.0,9.3E-12,1.5E0,0.,0.6,0.,0.))
  RCONST(110) = (GCARR(8.10E-12,0.0E+00,270.0))
  RCONST(111) = (GCARR(7.66E-12,0.0E+00,-1020.0))
  RCONST(112) = (GCARR(2.60E-12,0.0E+00,365.0))
  RCONST(113) = (GC_TBRANCH(7.60E-12,0.0E+00,-585.0,5.87E0,0.64E0,-816.0))
  RCONST(114) = (GC_TBRANCH(7.60E-12,0.0E+00,-585.0,1.7E-1,-0.64E0,816.0))
  RCONST(115) = (GCARR(2.90E-12,0.0E+00,350.0))
  RCONST(116) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(117) = (GCARR(9.10E-12,0.0E+00,-405.0))
  RCONST(118) = (GC_RO2NO('B',2.70E-12,0.0E+00,350.0,4.5E0,0.0,0.0))
  RCONST(119) = (GC_RO2NO('A',2.70E-12,0.0E+00,350.0,4.5E0,0.0,0.0))
  RCONST(120) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(121) = (GCARR(2.80E-12,0.0E+00,300.0))
  RCONST(122) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(123) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(124) = (GCARR(4.07E+08,0.0E+00,-7694.0))
  RCONST(125) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(126) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(127) = (GCARR(2.90E+07,0.0E+00,-5297.0))
  RCONST(128) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(129) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(130) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(131) = (GCARR(2.30E-12,0.0E+00,0.0))
  RCONST(132) = (GCARR(3.15E-13,0.0E+00,-448.0))
  RCONST(133) = (GCARR(4.00E-12,0.0E+00,0.0))
  RCONST(134) = (GCARR(6.70E-12,0.0E+00,340.0))
  RCONST(135) = (GCJPLPR(9.00E-28,8.9E+00,0.0,7.7E-12,0.2,0.0,0.6,0.0,0.0))
  RCONST(136) = (GCARR(5.20E-13,0.0E+00,980.0))
  RCONST(137) = (GCARR(2.30E-12,0.0E+00,0.0))
  RCONST(138) = (GCARR(2.60E-12,0.0E+00,380.0))
  RCONST(139) = (GCARR(2.06E-13,0.0E+00,1300.0))
  RCONST(140) = (GCARR(2.00E-13,0.0E+00,0.0))
  RCONST(141) = (GCARR(4.15E-15,0.0E+00,-1520.0))
  RCONST(142) = (GCARR(7.48E-12,0.0E+00,410.0))
  RCONST(143) = (GCARR(2.60E-12,0.0E+00,380.0))
  RCONST(144) = (GCARR(2.06E-13,0.0E+00,1300.0))
  RCONST(145) = (GCARR(2.06E-13,0.0E+00,0.0))
  RCONST(146) = (GCARR(1.20E-12,0.0E+00,0.0))
  RCONST(147) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(148) = (GCARR(2.80E-12,0.0E+00,-3280.0))
  RCONST(149) = (GCARR(1.60E-12,0.0E+00,0.0))
  RCONST(150) = (GCARR(3.15E-14,0.0E+00,920.0))
  RCONST(151) = (GCARR(6.00E-12,0.0E+00,410.0))
  RCONST(152) = (GCJPLPR(9.00E-28,8.9E+00,0.0,7.7E-12,0.2,0.0,0.6,0.0,0.0))
  RCONST(153) = (GCJPLEQ(9.00E-29,0.0E+00,14000.0,9.00E-28,8.9E0,0.0,7.7E-12,0.2,0.,0.6,0.,0.))
  RCONST(154) = (GCJPLPR(9.00E-28,8.9E+00,0.0,7.7E-12,0.2,0.0,0.6,0.0,0.0))
  RCONST(155) = (GCJPLPR(9.00E-28,8.9E+00,0.0,7.7E-12,0.2,0.0,0.6,0.0,0.0))
  RCONST(156) = (GCJPLEQ(9.00E-29,0.0E+00,14000.0,9.00E-28,8.9E0,0.0,7.7E-12,0.2,0.,0.6,0.,0.))
  RCONST(157) = (GCJPLEQ(9.00E-29,0.0E+00,14000.0,9.00E-28,8.9E0,0.0,7.7E-12,0.2,0.,0.6,0.,0.))
  RCONST(158) = (GCARR(6.70E-12,0.0E+00,340.0))
  RCONST(159) = (GCARR(6.70E-12,0.0E+00,340.0))
  RCONST(160) = (GCARR(6.50E-15,0.0E+00,0.0))
  RCONST(161) = (1.33E-13+3.82E-11*exp(-2000.0_dp/TEMP))
  RCONST(162) = (GCARR(5.92E-13,0.0E+00,0.0))
  RCONST(163) = (GCARR(5.92E-13,0.0E+00,0.0))
  RCONST(164) = (GCARR(7.40E-13,0.0E+00,700.0))
  RCONST(165) = (GCARR(7.40E-13,0.0E+00,700.0))
  RCONST(166) = (GCARR(8.60E-13,0.0E+00,700.0))
  RCONST(167) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,4.0,0.0,0.0))
  RCONST(168) = (GCARR(2.06E-13,0.0E+00,1300.0))
  RCONST(169) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,4.0,0.0,0.0))
  RCONST(170) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,4.0,0.0,0.0))
  RCONST(171) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,4.0,0.0,0.0))
  RCONST(172) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,3.0,0.0,0.0))
  RCONST(173) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,5.0,0.0,0.0))
  RCONST(174) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,3.0,0.0,0.0))
  RCONST(175) = (GCARR(1.30E-12,0.0E+00,-25.0))
  RCONST(176) = (GCARR(3.00E-13,0.0E+00,0.0))
  RCONST(177) = (GCARR(8.00E-16,0.0E+00,0.0))
  RCONST(178) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(179) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(180) = (GCARR(7.50E-13,0.0E+00,500.0))
  RCONST(181) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(182) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(183) = (GCARR(2.30E-12,0.0E+00,0.0))
  RCONST(184) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(185) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(186) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(187) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(188) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(189) = (GCARR(1.30E-12,0.0E+00,0.0))
  RCONST(190) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(191) = (GCARR(3.35E-12,0.0E+00,0.0))
  RCONST(192) = (GCARR(4.60E-12,0.0E+00,70.0))
  RCONST(193) = (GCARR(4.10E-14,0.0E+00,0.0))
  RCONST(194) = (GCARR(2.70E-14,0.0E+00,0.0))
  RCONST(195) = (GCARR(7.40E-13,0.0E+00,700.0))
  RCONST(196) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,3.0,0.0,0.0))
  RCONST(197) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,3.0,0.0,0.0))
  RCONST(198) = (GCARR(5.20E-13,0.0E+00,980.0))
  RCONST(199) = (GCARR(4.30E-13,0.0E+00,1040.0))
  RCONST(200) = (GCARR(4.30E-13,0.0E+00,1040.0))
  RCONST(201) = (GCJPLPR(4.60E-27,4.0E+00,0.0,2.6E-11,1.3,0.0,0.5,0.0,0.0))
  RCONST(202) = (GCARR(5.50E-15,0.0E+00,-1880.0))
  RCONST(203) = (GCARR(2.90E-11,0.0E+00,0.0))
  RCONST(204) = (GCARR(3.00E-11,0.0E+00,0.0))
  RCONST(205) = (GCARR(8.20E-18,0.0E+00,0.0))
  RCONST(206) = (GCARR(3.48E-12,0.0E+00,0.0))
  RCONST(207) = (GC_GLYCOHA(8.00E-12,0.0E+00,0.0))
  RCONST(208) = (GC_GLYCOHB(8.00E-12,0.0E+00,0.0))
  RCONST(209) = (GCARR(4.59E-13,0.0E+00,-1156.0))
  RCONST(210) = (GCARR(3.10E-12,0.0E+00,340.0))
  RCONST(211) = (GCARR(1.50E-11,0.0E+00,0.0))
  RCONST(212) = (GC_GLYXNO3(1.40E-12,0.0E+00,-1860.0))
  RCONST(213) = (GCARR(3.36E-12,0.0E+00,-1860.0))
  RCONST(214) = (GCARR(3.00E-11,0.0E+00,360.0))
  RCONST(215) = (GCARR(2.70E-12,0.0E+00,580.0))
  RCONST(216) = (GCARR(9.60E-12,0.0E+00,360.0))
  RCONST(217) = (GC_HACOHA(2.15E-12,0.0E+00,305.0))
  RCONST(218) = (GC_HACOHB(2.15E-12,0.0E+00,305.0))
  RCONST(219) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(220) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(221) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(222) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(223) = (GCARR(1.00E-14,0.0E+00,-1970.0))
  RCONST(224) = (GCARR(8.5E-16,0.0E+00,-1520.0))
  RCONST(225) = (GCARR(1.50E-15,0.0E+00,-2110.0))
  RCONST(226) = (GCARR(3.50E-12,0.0E+00,-450.0))
  RCONST(227) = (GCARR(3.40E-15,0.0E+00,0.0))
  RCONST(228) = (GCARR(1.50E-12,0.0E+00,-1815.0))
  RCONST(229) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(230) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(231) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(232) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(233) = (GCARR(1.90E-11,0.0E+00,390.0))
  RCONST(234) = (GCARR(5.18E-12,0.0E+00,200.0))
  RCONST(235) = (GCARR(8.78E-12,0.0E+00,200.0))
  RCONST(236) = (GCARR(5.18E-12,0.0E+00,200.0))
  RCONST(237) = (GCARR(5.18E-12,0.0E+00,200.0))
  RCONST(238) = (GCARR(8.78E-12,0.0E+00,200.0))
  RCONST(239) = (GCARR(8.78E-12,0.0E+00,200.0))
  RCONST(240) = (GCARR(6.13E-13,0.0E+00,200.0))
  RCONST(241) = (GCARR(8.78E-12,0.0E+00,200.0))
  RCONST(242) = (GCARR(6.13E-12,0.0E+00,200.0))
  RCONST(243) = (GCARR(4.14E-12,0.0E+00,200.0))
  RCONST(244) = (GCARR(5.11E-12,0.0E+00,200.0))
  RCONST(245) = (GCARR(1.70E-11,0.0E+00,390.0))
  RCONST(246) = (GCARR(2.97E-11,0.0E+00,390.0))
  RCONST(247) = (GCARR(2.92E-11,0.0E+00,390.0))
  RCONST(248) = (GCARR(4.82E-11,0.0E+00,-400.0))
  RCONST(249) = (GCARR(3.73E-11,0.0E+00,-400.0))
  RCONST(250) = (GCARR(5.79E-11,0.0E+00,-400.0))
  RCONST(251) = (GCARR(3.20E-11,0.0E+00,-400.0))
  RCONST(252) = (GCARR(2.06E-13,0.0E+00,1300.0))
  RCONST(253) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(254) = (GCARR(5.31E-12,0.0E+00,200.0))
  RCONST(255) = (GCARR(8.78E-12,0.0E+00,200.0))
  RCONST(256) = (GCARR(1.84E-12,0.0E+00,200.0))
  RCONST(257) = (GCARR(4.40E-12,0.0E+00,380.0))
  RCONST(258) = (GCARR(6.13E-13,0.0E+00,200.0))
  RCONST(259) = (GCARR(3.60E-12,0.0E+00,380.0))
  RCONST(260) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(261) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(262) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(263) = (GCARR(8.37E-14,0.0E+00,0.0))
  RCONST(264) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,4.0,0.0,0.0))
  RCONST(265) = (GC_RO2NO('B',2.70E-12,0.0E+00,350.0,4.0,0.0,0.0))
  RCONST(266) = (GC_RO2NO('A',2.70E-12,0.0E+00,350.0,4.0,0.0,0.0))
  RCONST(267) = (GCARR(6.13E-13,0.0E+00,200.0))
  RCONST(268) = (GCARR(1.40E-18,0.0E+00,0.0))
  RCONST(269) = (GCARR(6.16E-15,0.0E+00,-1814.0))
  RCONST(270) = (GCARR(2.50E-12,0.0E+00,500.0))
  RCONST(271) = (GCARR(1.80E-12,0.0E+00,500.0))
  RCONST(272) = (GCARR(2.00E-13,0.0E+00,500.0))
  RCONST(273) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(274) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(275) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(276) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(277) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(278) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(279) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(280) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(281) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(282) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(283) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(284) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(285) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(286) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(287) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(288) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(289) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(290) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(291) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(292) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(293) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(294) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(295) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(296) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(297) = (GCARR(1.68E-12,0.0E+00,500.0))
  RCONST(298) = (GCARR(1.87E-13,0.0E+00,500.0))
  RCONST(299) = (GCARR(2.50E-12,0.0E+00,500.0))
  RCONST(300) = (GCARR(2.50E-12,0.0E+00,500.0))
  RCONST(301) = (GCARR(3.70E-19,0.0E+00,0.0))
  RCONST(302) = (GCARR(2.90E-17,0.0E+00,0.0))
  RCONST(303) = (GCARR(3.35E-11,0.0E+00,380.0))
  RCONST(304) = (GC_RO2NO('B',2.70E-12,0.0E+00,350.0,5.0,0.0,0.0))
  RCONST(305) = (GC_RO2NO('A',2.70E-12,0.0E+00,350.0,5.0,0.0,0.0))
  RCONST(306) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,5.0,0.0,0.0))
  RCONST(307) = (GCARR(1.20E-11,0.0E+00,652.0))
  RCONST(308) = (GCARR(2.40E-12,0.0E+00,745.0))
  RCONST(309) = (GCARR(2.40E-12,0.0E+00,360.0))
  RCONST(310) = (GCARR(8.70E-14,0.0E+00,1650.0))
  RCONST(311) = (GCARR(2.40E-12,0.0E+00,360.0))
  RCONST(312) = (GCARR(8.70E-14,0.0E+00,1650.0))
  RCONST(313) = (GCARR(4.75E-12,0.0E+00,200.0))
  RCONST(314) = (GCARR(4.40E-13,0.0E+00,380.0))
  RCONST(315) = (GCARR(8.79E-13,0.0E+00,380.0))
  RCONST(316) = (GCARR(2.70E-12,0.0E+00,350.0))
  RCONST(317) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,4.0,0.0,0.0))
  RCONST(318) = (GCJPLPR(9.00E-28,8.9E+00,0.0,7.7E-12,0.2,0.0,0.6,0.0,0.0))
  RCONST(319) = (GCJPLEQ(9.00E-29,0.0E+00,14000.0,9.00E-28,8.9E0,0.0,7.7E-12,0.2,0.,0.6,0.,0.))
  RCONST(320) = (GCARR(2.52E-12,0.0E+00,410.0))
  RCONST(321) = (GC_RO2NO('B',2.70E-12,0.0E+00,350.0,5.0,0.0,0.0))
  RCONST(322) = (GC_RO2NO('A',2.70E-12,0.0E+00,350.0,5.0,0.0,0.0))
  RCONST(323) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,5.0,0.0,0.0))
  RCONST(324) = (GCARR(2.79E-11,0.0E+00,380.0))
  RCONST(325) = (GC_RO2NO('B',2.70E-12,0.0E+00,350.0,5.0,0.0,0.0))
  RCONST(326) = (GC_RO2NO('A',2.70E-12,0.0E+00,350.0,5.0,0.0,0.0))
  RCONST(327) = (GC_RO2HO2(2.91E-13,0.0E+00,1300.0,4.0,0.0,0.0))
  RCONST(328) = (GCARR(2.00E-17,0.0E+00,0.0))
  RCONST(329) = (GCARR(2.40E-12,0.0E+00,0.0))
  RCONST(330) = (GCARR(6.70E-13,0.0E+00,0.0))
  RCONST(331) = (GCARR(1.20E-15,0.0E+00,0.0))
  RCONST(332) = (GCARR(1.00E-14,0.0E+00,0.0))
  RCONST(333) = (GCARR(1.00E-15,0.0E+00,0.0))
  RCONST(334) = (GCARR(6.00E-18,0.0E+00,0.0))
  RCONST(335) = (GCARR(1.00E-17,0.0E+00,0.0))
  RCONST(336) = (GCARR(1.20E-15,0.0E+00,0.0))
  RCONST(337) = (GCARR(1.00E-14,0.0E+00,0.0))
  RCONST(338) = (GCARR(1.00E-15,0.0E+00,0.0))
  RCONST(339) = (GCARR(1.00E-17,0.0E+00,0.0))
  RCONST(340) = (GCARR(6.00E-18,0.0E+00,0.0))
  RCONST(341) = (GCARR(1.20E-15,0.0E+00,0.0))
  RCONST(342) = (GCARR(1.00E-14,0.0E+00,0.0))
  RCONST(343) = (GCARR(1.00E-15,0.0E+00,0.0))
  RCONST(344) = (GCARR(6.00E-18,0.0E+00,0.0))
  RCONST(345) = (GCARR(1.20E-15,0.0E+00,0.0))
  RCONST(346) = (GCARR(1.00E-14,0.0E+00,0.0))
  RCONST(347) = (GCARR(1.00E-15,0.0E+00,0.0))
  RCONST(348) = (GCARR(6.00E-18,0.0E+00,0.0))
  RCONST(349) = (GCARR(1.20E-15,0.0E+00,0.0))
  RCONST(350) = (GCARR(1.00E-14,0.0E+00,0.0))
  RCONST(351) = (GCARR(1.00E-15,0.0E+00,0.0))
  RCONST(352) = (GCARR(1.00E-17,0.0E+00,0.0))
  RCONST(353) = (GCARR(6.00E-18,0.0E+00,0.0))
  RCONST(354) = (GCARR(1.20E-15,0.0E+00,0.0))
  RCONST(355) = (GCARR(1.00E-14,0.0E+00,0.0))
  RCONST(356) = (GCARR(1.00E-15,0.0E+00,0.0))
  RCONST(357) = (GCARR(6.00E-18,0.0E+00,0.0))
  RCONST(358) = (GCARR(1.00E-17,0.0E+00,0.0))
  RCONST(359) = (GCARR(1.20E-15,0.0E+00,0.0))
  RCONST(360) = (GCARR(1.00E-14,0.0E+00,0.0))
  RCONST(361) = (GCARR(1.00E-15,0.0E+00,0.0))
  RCONST(362) = (GCARR(6.00E-18,0.0E+00,0.0))
  RCONST(363) = (GCARR(1.00E-17,0.0E+00,0.0))
  RCONST(364) = (GCARR(1.40E-11,0.0E+00,0.0))
  RCONST(365) = (GCARR(5.10E-11,0.0E+00,0.0))
  RCONST(366) = (GCARR(2.70E-12,0.0E+00,360.0))
  RCONST(367) = (GCARR(2.70E-12,0.0E+00,360.0))
  RCONST(368) = (GCARR(2.05E-13,0.0E+00,1300.0))
  RCONST(369) = (GCARR(2.05E-13,0.0E+00,1300.0))
  RCONST(370) = (GCARR(2.90E+07,0.0E+00,-5300.0))
  RCONST(371) = (GCARR(1.28E+07,0.0E+00,-5300.0))
  RCONST(372) = (SUN*6.4E-6)
  RCONST(373) = (SUN*1.0E-6)
  RCONST(374) = (SUN*3.0E-5)
  RCONST(375) = (SUN*1.13E-6*0.8)
  RCONST(376) = (SUN*1.13E-6*0.2)
  RCONST(377) = (SUN*6.08E-6)
  RCONST(378) = (SUN*1.67E-5)
  RCONST(379) = (SUN*8.46E-5)
  RCONST(380) = (SUN*8.61E-6)
  RCONST(381) = (SUN*3.71E-5)
  RCONST(382) = (SUN*3.1E-3)
  RCONST(383) = (SUN*6.08E-6*0.6)
  RCONST(384) = (SUN*6.08E-6*0.2)
  RCONST(385) = (SUN*6.08E-6*0.2)
  RCONST(386) = (SUN*1.96E-6)
  RCONST(387) = (SUN*2.88E-6)
  RCONST(388) = (SUN*7.85E-6)
  RCONST(389) = (SUN*7.85E-6)
  RCONST(390) = (SUN*3.0E-5)
  RCONST(391) = (SUN*3.0E-5)
  RCONST(392) = (SUN*3.0E-5)
  RCONST(393) = (SUN*3.0E-5)
  RCONST(394) = (SUN*3.0E-5)
  RCONST(395) = (SUN*3.0E-5)
  RCONST(396) = (SUN*6.5E-6)
  RCONST(397) = (SUN*6.5E-6)
  RCONST(398) = (SUN*6.5E-6)
  RCONST(399) = (SUN*3.65E-5)
  RCONST(400) = (SUN*5.0E-6)
  RCONST(401) = (SUN*3.0E-5)
  RCONST(402) = (SUN*3.0E-5)
  RCONST(403) = (SUN*3.0E-5)
  RCONST(404) = (SUN*8.44E-6)
  RCONST(405) = (SUN*3.0E-5)
  RCONST(406) = (SUN*6.46E-5)
  RCONST(407) = (SUN*6.46E-5)
  RCONST(408) = (SUN*6.46E-5)
  RCONST(409) = (SUN*6.46E-5)
  RCONST(410) = (SUN*8.44E-6)
  RCONST(411) = (SUN*6.49E-6)
  RCONST(412) = (SUN*1.0E-6)
  RCONST(413) = (SUN*8.44E-6)
  RCONST(414) = (SUN*1.96E-6)
  RCONST(415) = (SUN*1.96E-6)
  RCONST(416) = (SUN*1.96E-6)
! RCONST(417) = constant rate coefficient
! RCONST(418) = constant rate coefficient
! RCONST(419) = constant rate coefficient
! RCONST(420) = constant rate coefficient
  RCONST(421) = (5.0E-4*2.7558E-7)
  RCONST(422) = (0.0E-9*1.2401E-8)
  RCONST(423) = (0.0E-9*1.2023E-8)
  RCONST(424) = (5.0E-4*6.6138E-9)
! RCONST(425) = constant rate coefficient
! RCONST(426) = constant rate coefficient
! RCONST(427) = constant rate coefficient
! RCONST(428) = constant rate coefficient
! RCONST(429) = constant rate coefficient
! RCONST(430) = constant rate coefficient
! RCONST(431) = constant rate coefficient
! RCONST(432) = constant rate coefficient
! RCONST(433) = constant rate coefficient
! RCONST(434) = constant rate coefficient
! RCONST(435) = constant rate coefficient
! RCONST(436) = constant rate coefficient
! RCONST(437) = constant rate coefficient
! RCONST(438) = constant rate coefficient
! RCONST(439) = constant rate coefficient
! RCONST(440) = constant rate coefficient
! RCONST(441) = constant rate coefficient
! RCONST(442) = constant rate coefficient
! RCONST(443) = constant rate coefficient
! RCONST(444) = constant rate coefficient
! RCONST(445) = constant rate coefficient
! RCONST(446) = constant rate coefficient
! RCONST(447) = constant rate coefficient
! RCONST(448) = constant rate coefficient
! RCONST(449) = constant rate coefficient
! RCONST(450) = constant rate coefficient
! RCONST(451) = constant rate coefficient
! RCONST(452) = constant rate coefficient
! RCONST(453) = constant rate coefficient
! RCONST(454) = constant rate coefficient
! RCONST(455) = constant rate coefficient
! RCONST(456) = constant rate coefficient
! RCONST(457) = constant rate coefficient
! RCONST(458) = constant rate coefficient
! RCONST(459) = constant rate coefficient
! RCONST(460) = constant rate coefficient
! RCONST(461) = constant rate coefficient
! RCONST(462) = constant rate coefficient
! RCONST(463) = constant rate coefficient
! RCONST(464) = constant rate coefficient
! RCONST(465) = constant rate coefficient
! RCONST(466) = constant rate coefficient
! RCONST(467) = constant rate coefficient
! RCONST(468) = constant rate coefficient
! RCONST(469) = constant rate coefficient
! RCONST(470) = constant rate coefficient
! RCONST(471) = constant rate coefficient
! RCONST(472) = constant rate coefficient
! RCONST(473) = constant rate coefficient
! RCONST(474) = constant rate coefficient
! RCONST(475) = constant rate coefficient
! RCONST(476) = constant rate coefficient
! RCONST(477) = constant rate coefficient
! RCONST(478) = constant rate coefficient
! RCONST(479) = constant rate coefficient
! RCONST(480) = constant rate coefficient
! RCONST(481) = constant rate coefficient
! RCONST(482) = constant rate coefficient
! RCONST(483) = constant rate coefficient
! RCONST(484) = constant rate coefficient
! RCONST(485) = constant rate coefficient
! RCONST(486) = constant rate coefficient
! RCONST(487) = constant rate coefficient
! RCONST(488) = constant rate coefficient
! RCONST(489) = constant rate coefficient
! RCONST(490) = constant rate coefficient
! RCONST(491) = constant rate coefficient
! RCONST(492) = constant rate coefficient
! RCONST(493) = constant rate coefficient
! RCONST(494) = constant rate coefficient
! RCONST(495) = constant rate coefficient
! RCONST(496) = constant rate coefficient
! RCONST(497) = constant rate coefficient
! RCONST(498) = constant rate coefficient
! RCONST(499) = constant rate coefficient
! RCONST(500) = constant rate coefficient
! RCONST(501) = constant rate coefficient
! RCONST(502) = constant rate coefficient
! RCONST(503) = constant rate coefficient
! RCONST(504) = constant rate coefficient
! RCONST(505) = constant rate coefficient
! RCONST(506) = constant rate coefficient
! RCONST(507) = constant rate coefficient
! RCONST(508) = constant rate coefficient
! RCONST(509) = constant rate coefficient
! RCONST(510) = constant rate coefficient
! RCONST(511) = constant rate coefficient
! RCONST(512) = constant rate coefficient
! RCONST(513) = constant rate coefficient
! RCONST(514) = constant rate coefficient
! RCONST(515) = constant rate coefficient
! RCONST(516) = constant rate coefficient
! RCONST(517) = constant rate coefficient
! RCONST(518) = constant rate coefficient
! RCONST(519) = constant rate coefficient
! RCONST(520) = constant rate coefficient
! RCONST(521) = constant rate coefficient
! RCONST(522) = constant rate coefficient
! RCONST(523) = constant rate coefficient
! RCONST(524) = constant rate coefficient
! RCONST(525) = constant rate coefficient
! RCONST(526) = constant rate coefficient
! RCONST(527) = constant rate coefficient
! RCONST(528) = constant rate coefficient
! RCONST(529) = constant rate coefficient
! RCONST(530) = constant rate coefficient
! RCONST(531) = constant rate coefficient
! RCONST(532) = constant rate coefficient
! RCONST(533) = constant rate coefficient
! RCONST(534) = constant rate coefficient
! RCONST(535) = constant rate coefficient
! RCONST(536) = constant rate coefficient
! RCONST(537) = constant rate coefficient
! RCONST(538) = constant rate coefficient
! RCONST(539) = constant rate coefficient
! RCONST(540) = constant rate coefficient
! RCONST(541) = constant rate coefficient
! RCONST(542) = constant rate coefficient
! RCONST(543) = constant rate coefficient
! RCONST(544) = constant rate coefficient
! RCONST(545) = constant rate coefficient
! RCONST(546) = constant rate coefficient
! RCONST(547) = constant rate coefficient
! RCONST(548) = constant rate coefficient
! RCONST(549) = constant rate coefficient
! RCONST(550) = constant rate coefficient
! RCONST(551) = constant rate coefficient
! RCONST(552) = constant rate coefficient
! RCONST(553) = constant rate coefficient
! RCONST(554) = constant rate coefficient
! RCONST(555) = constant rate coefficient
! RCONST(556) = constant rate coefficient
! RCONST(557) = constant rate coefficient
! RCONST(558) = constant rate coefficient
! RCONST(559) = constant rate coefficient
! RCONST(560) = constant rate coefficient
! RCONST(561) = constant rate coefficient
! RCONST(562) = constant rate coefficient
! RCONST(563) = constant rate coefficient
! RCONST(564) = constant rate coefficient
! RCONST(565) = constant rate coefficient
! RCONST(566) = constant rate coefficient
! RCONST(567) = constant rate coefficient
! RCONST(568) = constant rate coefficient
      
END SUBROUTINE Update_RCONST

! End of Update_RCONST function
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
! 
! Update_PHOTO - function to update photolytical rate constants
!   Arguments :
! 
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SUBROUTINE Update_PHOTO ( )


   USE aromatics_kpp_Global

      
END SUBROUTINE Update_PHOTO

! End of Update_PHOTO function
! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



END MODULE aromatics_kpp_Rates

